package com.victorvieux.android.dialogs;

import com.victorvieux.android.vlcmote.R;

import android.widget.Toast;
import android.content.Context;

public class volumeDiagManager {
	boolean _run = false;
	Context _c;
	
    final Runnable r_dismiss = new Runnable() {
    	public void run() {
    		_run = true;
		    new Thread() {
		    	public void run() {
		    		try{ Thread.sleep(2500, 0); }catch(InterruptedException e){ } 
		    		_run = false;
		    	}
			}.start();
    	}
    };

    public volumeDiagManager(Context c) {
        _c = c;
    }
    
    public void showP(){
    	if (!_run) {
    		Toast.makeText(_c, R.string.MainVolP, Toast.LENGTH_SHORT).show();
    		r_dismiss.run();
    	}
    }
    
    public void showM(){
    	if (!_run) {
    		Toast.makeText(_c, R.string.MainVolM, Toast.LENGTH_SHORT).show();
    		r_dismiss.run();
    	}
    }
}